package com.ikun.admin.modules.noauth.vo;

import com.ikun.common.validate.anno.NotNull;
import com.ikun.common.validate.anno.Regular;
import com.ikun.common.validate.constant.RegularPatternType;
import com.ikun.common.validate.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName ImgCodeVo
 * @Description:
 * @CreateDate: 2024/5/14 9:35
 */
@ApiModel("校验接口vo")
@Data
public class ForgotPasswordVo extends CodeCommonVo {

    @ApiModelProperty("账号")
    @NotNull(message = "账号不能为空")
    private String username;

    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空", group = {UpdateGroup.class})
    @Regular(message = "密码必须包含字母和数字,且长度不低于6位",pattern = RegularPatternType.PASSWORD)
    private String password;

    @ApiModelProperty("确认密码")
    @NotNull(message = "确认密码不能为空", group = {UpdateGroup.class})
    @Regular(message = "密码必须包含字母和数字,且长度不低于6位",pattern = RegularPatternType.PASSWORD)
    private String confirmPassword;


    @ApiModelProperty("图片验证码")
    private String imgCode;

}
